import React from 'react'
import { useNavigate } from 'react-router-dom';

function Life() {
  let navigate = useNavigate();

  function pathSwitch(path = `/`) {
    navigate(path)
  }

  return (
    <div>
      Life
      <button onClick={() => pathSwitch()}>Go Back</button>
    </div>
  )
}

export default Life